<?php
/**
 * Manageaccount_Controller_Manageaccount
 * manage account controller
 * 
 * @author Adrian Stolarski
 */
class Manageaccount_Controller_Manageaccount implements Manageaccount_Controller_Mainable {
    
    /**
     *
     * @var type $manage_account
     * manage account handler
     */
    public $manage_account;
    /**
     *
     * @var type $old_view
     * old view handler
     */
    public $old_view;
    
    public function main(array $variables = null) {
        $this->manage_account = new Manageaccount_Model_Manageaccount;
        $page = $this->manage_account->main($variables);
        $template = $page['template'];
        $_SESSION['token'] = $page['csrf_token'];
        $view = new Core_Model_Oldview($template);
        $view->assign('page', $page);
    }

}
